﻿package ua.mihaylenko.canvas.gui.photoshop.canvas
{
	import flash.display.Sprite;
	import flash.geom.ColorTransform;
	import flash.geom.Transform;
	import ua.mihaylenko.canvas.gui.GUISimpleWindow;
	/**
	 * ...
	 * @author Mihaylenko A.L.
	 */
	public class GUIColor extends GUISimpleWindow
	{
		public var _smcColor:Sprite;
		public var _smcMask:Sprite;
		private var _uColor:uint = uint(0xFFFFFF);
		
		public function GUIColor() 
		{
			
		}
		public function set color(uColor:uint) {
			_uColor = uColor;
			var tmpColorTransform:ColorTransform = new ColorTransform();
			tmpColorTransform.color = uColor;
			_smcColor.transform.colorTransform = tmpColorTransform;
		}
		public function get color() {
			return _uColor;
		}
	}
	
}